import {createBrowserRouter} from 'react-router-dom'
import App from '../App'
import Home from '../pages/Home'
import Login from '../pages/Login'
import Huiyuan from '../pages/Huiyuan'
import My from '../pages/My'
import Order from '../pages/Order'
import Traval from '../pages/Traval'

const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                path:'home',
                element:<Home></Home>
            },
            {
                path:'traval',
                element:<Traval></Traval>
            },
            {
                path:'order',
                element:<Order></Order>
            },
            {
                path:'huiyuan',
                element:<Huiyuan></Huiyuan>
            },
            {
                path:'my',
                element:<My></My>
            }
        ]
    },
    {
        path:'/login',
        element:<Login></Login>
    }
])
export default router